/**
 * zoneland.net Inc.
 * Copyright (c) 2002-2013 All Rights Reserved.
 */
package net.zoneland.knowledge.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * 资源类型枚举.
 *
 * @author ypz
 * @version $Id: ResourceTypeEnum.java, v 0.1 2013-5-9 上午11:16:20 ypz Exp $
 */
public enum ResourceTypeEnum {
    /**
     * 分类.
     */
    CATEGORY("分类", "1"),
    /**
     * 菜单.
     */
    MENU("菜单", "2"),
    /**
     * 操作.
     */
    OPERATION("操作", "3");
    private String name;
    private String value;

    private ResourceTypeEnum(final String name, final String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

    public static List<ResourceTypeEnum> getEnumList() {
        List<ResourceTypeEnum> resourceTypeEnumList = new ArrayList<ResourceTypeEnum>();
        resourceTypeEnumList.add(CATEGORY);
        resourceTypeEnumList.add(MENU);
        resourceTypeEnumList.add(OPERATION);
        return resourceTypeEnumList;
    }

}
